package com.zj198.dao.hibernate;

import java.util.List;

import org.hibernate.Query;

import com.zj198.dao.AdmFunctionDAO;
import com.zj198.model.AdmFunction;

public class AdmFunctionDAOImpl extends HibernateDAO<AdmFunction, Integer> implements AdmFunctionDAO {

	@Override
	public List<AdmFunction> findAllMenu() {
		String hql="from AdmFunction as model where model.ismenu=1";
		Query query = this.getSession().createQuery(hql);
		return query.list();
	}

}
